Repository navigation
Conversation
Allow searching LDAP groups and returning a matching ACL name.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Group searches use the authenticated user's LDAP permissions instead of the configured search account's, potentially rejecting valid users, and subsecond operation timeouts truncate to zero, disabling the search time limit.
2 open issues
What changed in this PR
Adds LDAP group-based authorization to the auth sidecar, returning the ACL username from the first matching configured group mapping.
Changes:
- Adds group searches and ordered group-to-ACL mappings after user authentication.
- Migrates configuration to
go-envconfig, with separate user/group search settings and duration-based timeouts. - Updates the demo configuration and end-to-end expectations for mapped users and users without matching groups.
| File | Description |
|---|---|
go.sum |
Adds checksums for go-envconfig. |
go.mod |
Adds the go-envconfig dependency. |
cmd/auth-sidecar/search.go |
Adds group lookup and ordered ACL mapping selection. |
cmd/auth-sidecar/main.go |
Returns unauthorized for unmapped users and logs other authentication failures. |
cmd/auth-sidecar/e2e_test.go |
Updates expected ACL usernames and unmapped-user rejection. |
cmd/auth-sidecar/docker-compose.yaml |
Configures demo group mappings and duration-based timeouts. |
cmd/auth-sidecar/config.go |
Adds environment decoding, group search settings, and mapping validation. |
Review effort: Balanced
Handle error for group search bind operation Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Tihomir Jovičić <tiho.dev@gmail.com>
tjovicic
force-pushed
the
feat/auth-sidecar-group-mappings
branch
from
November 24, 2026 13:09
75cc89f to
b629560
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Allow searching LDAP groups and returning a matching ACL name.